package com.guiji.quartz.task;

import com.guiji.quartz.domain.Techcrunch;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component("techcrunchTask")
public class TechcrunchTask {
	private static final Logger log = LoggerFactory.getLogger(TechcrunchTask.class);
	public void techcrunchTask() throws Exception {
		Long startTime = System.currentTimeMillis();
		Techcrunch techcrunch = new Techcrunch();
		try {
			techcrunch.mainMethod();
		} catch (Exception e) {
		}finally {
			log.info("TechcrunchTask-end-:{}",System.currentTimeMillis()-startTime);
		}

	}
}

